<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <div id="app">
        {{user.name}} === {{user.age}}
        <button @click='change'>修改</button>
    </div>
    <script src="../../vue.js"></script>
    <script>
        new Vue({
            el : '#app',
            data : {
               user : {
                   name : '张三',
                   age : '13'
               }
            },
            methods : {
                change(){
                    this.user.name = '李四'
                }
            }
        })
    </script>
</body>
</html>